package com.wowo.other;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanLifeDemoApp {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("other/app.xml");

        BeanLifeDemo beanLifeDemo = applicationContext.getBean(BeanLifeDemo.class);
        beanLifeDemo.show();

        ((ClassPathXmlApplicationContext) applicationContext).close();
    }
}
